from google.appengine.api import users
from favorite.models import *

def sites(request):
    sites = None
    if request.user:
        sites = FavorSite.gql("where user=:1 order by weight desc", request.user)
    return {"sites":sites}
